gtk4.git
10 years agoUpdated POTFILES.in
Piotr Drąg [Sun, 22 Nov 2015 19:01:39 +0000 (20:01 +0100)]
Updated POTFILES.in

10 years agoDon't pass widget state flags to GtkStyleContext API
Timm Bäder [Sun, 22 Nov 2015 10:43:39 +0000 (11:43 +0100)]
Don't pass widget state flags to GtkStyleContext API

10 years agoGDK W32: Only restack windows with matching always-on-top status
Руслан Ижбулатов [Sat, 21 Nov 2015 03:38:26 +0000 (03:38 +0000)]
GDK W32: Only restack windows with matching always-on-top status

This prevents normal application windows (and other kinds of windows)
from being moved up in Z-order to be above windows that have the
always-on-top bit set. Doing so would make the previously-normal windows
in question also always-on-top implicitly.
Windows that are already always-on-top will be restacked on top of other
always-on-top windows too.

https://bugzilla.gnome.org/show_bug.cgi?id=746745

10 years agoGDK W32: Refactor restacking functions a bit
Руслан Ижбулатов [Sat, 21 Nov 2015 03:37:40 +0000 (03:37 +0000)]
GDK W32: Refactor restacking functions a bit

10 years agoGtkRenderBorder: make one function static
Cosimo Cecchi [Sat, 21 Nov 2015 05:48:31 +0000 (21:48 -0800)]
GtkRenderBorder: make one function static

10 years agoGtkCssImage: formatting fixes
Cosimo Cecchi [Sat, 21 Nov 2015 05:20:48 +0000 (21:20 -0800)]
GtkCssImage: formatting fixes

10 years agogtk-demo: Fix selection in css basics demo
Timm Bäder [Sat, 21 Nov 2015 20:04:02 +0000 (21:04 +0100)]
gtk-demo: Fix selection in css basics demo

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 21 Nov 2015 09:01:10 +0000 (09:01 +0000)]
Updated Portuguese translation

10 years agoinspector: Always underline at least one char
Matthias Clasen [Sat, 21 Nov 2015 01:58:42 +0000 (20:58 -0500)]
inspector: Always underline at least one char

Empty underlines are hard to make out. Since we get somewhat
unreliable section information from the CSS parser, we just
make sure that we always underline at least one character.

10 years agocssnodedeclaration: Only set the id on the widget path if we have one
Benjamin Otte [Sat, 21 Nov 2015 01:40:05 +0000 (02:40 +0100)]
cssnodedeclaration: Only set the id on the widget path if we have one

Widget paths don't like NULL.

10 years agoUpdate key themes to use -gtk-key-bindings
Matthias Clasen [Sat, 21 Nov 2015 01:34:53 +0000 (20:34 -0500)]
Update key themes to use -gtk-key-bindings

The name gtk-key-bindings has been deprecated and causes warnings.

10 years agoRename the gtk-key-bindings property
Matthias Clasen [Sat, 21 Nov 2015 01:34:03 +0000 (20:34 -0500)]
Rename the gtk-key-bindings property

This is not a standard CSS property, so rename it to
-gtk-key-bindings. We still support the old name, with a
deprecation warning.

10 years agoHighContrast: use -gtk-icon-shadow
Matthias Clasen [Sat, 21 Nov 2015 01:32:42 +0000 (20:32 -0500)]
HighContrast: use -gtk-icon-shadow

The name icon-shadow has been deprecated and causes warnings.

10 years agoAdwaita: use -gtk-icon-shadow
Matthias Clasen [Sat, 21 Nov 2015 01:30:54 +0000 (20:30 -0500)]
Adwaita: use -gtk-icon-shadow

The name icon-shadow has been deprecated and causes warnings.

10 years agoRename the icon-shadow property
Matthias Clasen [Sat, 21 Nov 2015 01:25:33 +0000 (20:25 -0500)]
Rename the icon-shadow property

This is not a standard CSS property, so rename it to
-gtk-icon-shadow. We still support the old name, with a
deprecation warning.

10 years agoWarn if a property alias is used
Matthias Clasen [Sat, 21 Nov 2015 01:21:33 +0000 (20:21 -0500)]
Warn if a property alias is used

Emit a deprecation warning if a property is not used
by its official name.

10 years agoAdd a way to add aliases for css properties
Matthias Clasen [Sat, 21 Nov 2015 01:20:00 +0000 (20:20 -0500)]
Add a way to add aliases for css properties

This will be used to rename some properties in a more
systematic way without breaking all users of the old name.

10 years agoAdd a deprecation error for the engine css property
Matthias Clasen [Sat, 21 Nov 2015 00:04:14 +0000 (19:04 -0500)]
Add a deprecation error for the engine css property

This helps people fix up their css.

10 years agoinspector: Fix css warning tags
Matthias Clasen [Sat, 21 Nov 2015 00:01:54 +0000 (19:01 -0500)]
inspector: Fix css warning tags

The builder syntax for tags was invalid here (why did this not
get flagged as error ?!). While we're at it, give the warning
underline a nice, orange color.

10 years agostylecontext: Treat empty path like no path
Benjamin Otte [Sat, 21 Nov 2015 01:22:22 +0000 (02:22 +0100)]
stylecontext: Treat empty path like no path

This way, we don't do weird stuff when an empty path is set.

10 years agostylecontext: Copy name when setting widget path
Benjamin Otte [Sat, 21 Nov 2015 01:21:12 +0000 (02:21 +0100)]
stylecontext: Copy name when setting widget path

Imitate what we do for the type. This way we don't lose the name on
save/restore.

https://bugzilla.gnome.org/show_bug.cgi?id=758442

10 years agocssnodedeclaration: Set element name and id on widget path
Benjamin Otte [Sat, 21 Nov 2015 01:11:58 +0000 (02:11 +0100)]
cssnodedeclaration: Set element name and id on widget path

Otherwise the widget path creation functions will fail. This affects
widgets still using gtk_style_context_save().

https://bugzilla.gnome.org/show_bug.cgi?id=758442

10 years agocustomproperty: Remove unused function
Benjamin Otte [Sat, 21 Nov 2015 01:11:52 +0000 (02:11 +0100)]
customproperty: Remove unused function

10 years agocustomproperty: Stop supporting the parsing of values
Benjamin Otte [Fri, 20 Nov 2015 23:51:22 +0000 (00:51 +0100)]
customproperty: Stop supporting the parsing of values

Now that we don't use custom CSS properties anymore, let's fail as early
as possible.

10 years agoinspector: Show css parsing errors
Matthias Clasen [Fri, 20 Nov 2015 23:18:01 +0000 (18:18 -0500)]
inspector: Show css parsing errors

The squiggly underline is useful, but seeing the error message
is much better, so show it in a tooltip.

10 years agoExpand the container_remove hack
Matthias Clasen [Fri, 20 Nov 2015 20:30:29 +0000 (15:30 -0500)]
Expand the container_remove hack

Make it possible to use gtk_container_remove on GtkShortcutsWindow.
glade needs this.

10 years agoshortcuts window: More complete container implementation
Matthias Clasen [Fri, 20 Nov 2015 19:59:56 +0000 (14:59 -0500)]
shortcuts window: More complete container implementation

To give glade a chance to work with GtkShortcutsWindow, the
container implementation needs to be a bit more complete.

10 years agocssstyle: Don't store custom css properties
Benjamin Otte [Fri, 20 Nov 2015 18:37:52 +0000 (19:37 +0100)]
cssstyle: Don't store custom css properties

This makes custom CSS properties no longer configurable. But it avoids
crashes when loading custom themes, so that's a good thing.

Testcase included.

https://bugzilla.redhat.com/show_bug.cgi?id=1281234

10 years agoGtkSpinButton: Update node state on button release
Timm Bäder [Fri, 20 Nov 2015 18:15:27 +0000 (19:15 +0100)]
GtkSpinButton: Update node state on button release

10 years agoUpdated Lithuanian translation
Aurimas Černius [Fri, 20 Nov 2015 19:17:47 +0000 (21:17 +0200)]
Updated Lithuanian translation

10 years agowayland: Set a null cursor surface when cursor buffer is null
Jonas Ådahl [Fri, 20 Nov 2015 08:49:12 +0000 (16:49 +0800)]
wayland: Set a null cursor surface when cursor buffer is null

If the buffer of a cursor is NULL, for example if its an empty cursor,
just set the cursor surface to NULL as well. Not doing this we'll use
uninitialized hotspot coordinates, dimensions and scales.

https://bugzilla.gnome.org/show_bug.cgi?id=758025

10 years agospin button: Fix initial button state
Matthias Clasen [Fri, 20 Nov 2015 16:40:55 +0000 (11:40 -0500)]
spin button: Fix initial button state

We can't use up_panel and down_panel as differentiators for the buttons,
because these window system resources don't exist before realize().
Just use a one-off enum for this purpose.

https://bugzilla.gnome.org/show_bug.cgi?id=758094

10 years agoGtkLabel: Create gestures only when needed
Timm Bäder [Fri, 20 Nov 2015 15:06:10 +0000 (16:06 +0100)]
GtkLabel: Create gestures only when needed

And move them into the GtkLabelSelectionInfo struct.

10 years agogtkdnd: Unbreak non-wayland builds
Carlos Garnacho [Fri, 20 Nov 2015 12:29:34 +0000 (13:29 +0100)]
gtkdnd: Unbreak non-wayland builds

missing #ifdef...

10 years ago3.19.2
Matthias Clasen [Thu, 19 Nov 2015 20:32:32 +0000 (15:32 -0500)]
3.19.2

10 years agocell renderer progress: Avoid warnings
Matthias Clasen [Fri, 20 Nov 2015 04:04:38 +0000 (23:04 -0500)]
cell renderer progress: Avoid warnings

Use the right state when calling gtk_style_context_get_padding,
to avoid warnings.

10 years agoFix make check
Matthias Clasen [Fri, 20 Nov 2015 02:55:29 +0000 (21:55 -0500)]
Fix make check

For some reason, GtkFileChooserNative is causing the defaultvalue
test to fail. I couldn't track this down quickly, so skip the
type for now.

10 years agoWork around g_test_dbus annoyance
Matthias Clasen [Fri, 20 Nov 2015 00:56:19 +0000 (19:56 -0500)]
Work around g_test_dbus annoyance

Without iterating a mainloop for a bit, g_test_dbus_down() will
give us an error.

10 years agostack switcher: Notify consistently
Matthias Clasen [Thu, 19 Nov 2015 23:08:30 +0000 (18:08 -0500)]
stack switcher: Notify consistently

Whether to notify a property change should not depend
on whether the switcher is associated with a stack or not.

10 years agoshortcuts: Avoid excessive property notification
Matthias Clasen [Thu, 19 Nov 2015 23:05:35 +0000 (18:05 -0500)]
shortcuts: Avoid excessive property notification

Notifying needlessly causes unnecessary work, and causes our
testsuite to fail.

10 years agowayland: Ensure we have a drop-side GdkDragContext without pointer
Carlos Garnacho [Thu, 19 Nov 2015 23:07:36 +0000 (00:07 +0100)]
wayland: Ensure we have a drop-side GdkDragContext without pointer

This GdkDragContext should be created even if we don't have pointer
capabilities. Make it created on add_seat(), and only set the device
on wl_seat.capabilities, so it can be set to either master pointer.

https://bugzilla.gnome.org/show_bug.cgi?id=741066

10 years agogtkdnd: Ensure we don't fold the drag icon into the cursor on wayland
Carlos Garnacho [Thu, 19 Nov 2015 19:33:03 +0000 (20:33 +0100)]
gtkdnd: Ensure we don't fold the drag icon into the cursor on wayland

This is wrong by all accounts there, as we can do no tricks there to show
a "drag failed" animation, which is performed by the compositor itself
on wayland.

10 years agowayland: Fix toplevel lookup before starting DnD
Carlos Garnacho [Thu, 19 Nov 2015 19:26:11 +0000 (20:26 +0100)]
wayland: Fix toplevel lookup before starting DnD

We use the high-level gdk_device_get_window_at_position() to figure
out the window, although this one actually tries to find out the
current window under the device coordinates, which might well fall
outside the window, so NULL is returned in those cases.

Fix this by using the lower level _gdk_device_window_at_position()
that will return the toplevel without further lookups, so is more
desirable here.

https://bugzilla.gnome.org/show_bug.cgi?id=758250

10 years agogtkdnd: Use gdk_drag_begin_for_device()
Carlos Garnacho [Thu, 19 Nov 2015 19:00:23 +0000 (20:00 +0100)]
gtkdnd: Use gdk_drag_begin_for_device()

We've got the pointer at hand there, just pass that instead of figuring
out from the client pointer.

10 years agowayland: Implement GdkDevice::window_at_position for touch
Carlos Garnacho [Thu, 19 Nov 2015 19:23:44 +0000 (20:23 +0100)]
wayland: Implement GdkDevice::window_at_position for touch

This goes through its own master pointer, so look up the pointer
emulating touch focus window and coordinates.

10 years agowayland: Disallow setting the cursor on the touch master pointer
Carlos Garnacho [Thu, 19 Nov 2015 19:06:07 +0000 (20:06 +0100)]
wayland: Disallow setting the cursor on the touch master pointer

That "pointer" is not backed by anything in the windowing system, ignore
cursor updates there.

10 years agowayland: Ensure we get the master pointer on GdkDeviceManager::get_client_pointer
Carlos Garnacho [Thu, 19 Nov 2015 19:04:46 +0000 (20:04 +0100)]
wayland: Ensure we get the master pointer on GdkDeviceManager::get_client_pointer

Now that we have multiple master pointers, this call may pick the wrong one.
Instead, pick the GdkWaylandDeviceData from the first device, and pick the
master pointer from there.

10 years agowayland: Separate touch pointer emulation into its own master pointer
Carlos Garnacho [Thu, 8 Oct 2015 14:41:35 +0000 (16:41 +0200)]
wayland: Separate touch pointer emulation into its own master pointer

The common GDK code accounts for "pointer emulating" touch sequences to be
synchronized with the pointer position by the windowing system.

However on Wayland pointer and touch are completely independent, the backend
attempts to implement pointer emulation, but doesn't account for the
possible crossing events happening when the user switches from pointer to
touch or the opposite.

In order to fix this, and to ensure we don't have to interact with the
master pointer (which backs the wl_pointer), separate the touch interface
to have its own master pointer, and ensure crossing events are emitted on
it, so the picture of an "emulated pointer" is complete above the backend.

Inspired in a former patch by Jonny Lamb <jonnylamb@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=750845

10 years agogtkheaderbar: update the window buttons on ::hierarchy-changed instead of ::realize
Christoph Reiter [Wed, 18 Nov 2015 20:21:57 +0000 (21:21 +0100)]
gtkheaderbar: update the window buttons on ::hierarchy-changed instead of ::realize

The window button setup depends on properties of the toplevel window.
Instead of updating the setup on realize, do it when the toplevel
changes.

This makes sure that when a GtkHeaderBar is added to a window
all the widgets are present and get_preferred_height() will return
the height the widget will have when finally shown. This allows
the logic in gtkwindow to select the right window size so that
the content size will match the requested default size.

https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agogtkwindow: apply CSD adjustments to the default size when used instead of when setting it
Christoph Reiter [Wed, 18 Nov 2015 18:17:01 +0000 (19:17 +0100)]
gtkwindow: apply CSD adjustments to the default size when used instead of when setting it

Before the resulting window size would differ if the default size was set
before adding a headerbar vs after. Now the saved state is again the actual
requested size and it is adjusted at the time we request a window size.

https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agowindow: maximize on double click only if allowed
Olivier Fourdan [Wed, 4 Nov 2015 10:24:36 +0000 (11:24 +0100)]
window: maximize on double click only if allowed

GtkHeaderBar will not show the maximize button if the window in not of
type normal or not resizeable.

Use the same restriction for double-click actions as well.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=757530

10 years agoFix return annotations for GtkWindow
Jonas Platte [Sun, 8 Nov 2015 16:17:00 +0000 (16:17 +0000)]
Fix return annotations for GtkWindow

Add nullable annotations for functions that may return NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=753520

10 years agoFix character entities
Phillip Wood [Mon, 16 Nov 2015 12:14:05 +0000 (12:14 +0000)]
Fix character entities

These are not supposed to be supported by gtk-doc¹

¹https://bugzilla.gnome.org/show_bug.cgi?id=758137

https://bugzilla.gnome.org/show_bug.cgi?id=758175

10 years agogtkstack: allow templates to override all properties
Carlos Soriano [Wed, 11 Nov 2015 12:51:02 +0000 (13:51 +0100)]
gtkstack: allow templates to override all properties

Currently GtkStack has some G_PARAM_CONSTRUCT properties. That means,
the properties are set with its default value after the initializacion
of the object.
When using GtkBuilder to build objects, GtkBuilder creates them and
after that sets the properties found on the xml definition.
However, this is not true for templates because the template is initialized
in the init() function of the actual object, and after that, the construct
properties will be set.

This is a problem when someone wants to use templates with GtkStack and
set those properties, since they will be set on the tempalt initialization
and set again to its default values afterwards.

To fix this, make those properties not G_PARAM_CONSTRUCT.

https://bugzilla.gnome.org/show_bug.cgi?id=758086

10 years agoUpdates
Matthias Clasen [Thu, 19 Nov 2015 19:22:27 +0000 (14:22 -0500)]
Updates

10 years agowayland: Avoid a crash
Matthias Clasen [Thu, 19 Nov 2015 19:39:42 +0000 (14:39 -0500)]
wayland: Avoid a crash

We can end up in situations where NULL gets passed to
get_transient_parent(). Embrace it instead of avoiding it.

https://bugzilla.gnome.org/show_bug.cgi?id=758327

10 years agoAdd more CSS node docs
Matthias Clasen [Thu, 19 Nov 2015 19:01:41 +0000 (14:01 -0500)]
Add more CSS node docs

10 years agoTrivial: Some doc rewording
Matthias Clasen [Thu, 19 Nov 2015 18:40:57 +0000 (13:40 -0500)]
Trivial: Some doc rewording

10 years agoAdd some CSS node docs
Matthias Clasen [Thu, 19 Nov 2015 17:55:30 +0000 (12:55 -0500)]
Add some CSS node docs

Write up some of the insights from doing the CSS node transition,
so the knowledge is not lost.

10 years agoDo not use the GPL v3 blurb for LGPL v2.1 files
Emmanuele Bassi [Thu, 19 Nov 2015 12:44:17 +0000 (12:44 +0000)]
Do not use the GPL v3 blurb for LGPL v2.1 files

GTK+ is licensed under the terms of the GNU LGPL v2.1+.

10 years agoDo not use the LGPL v3 blurb for LGPL v2.1 files
Emmanuele Bassi [Thu, 19 Nov 2015 12:43:24 +0000 (12:43 +0000)]
Do not use the LGPL v3 blurb for LGPL v2.1 files

GTK+ is released under the terms of the GNU LGPL v2.1+.

10 years agoFix the license version in GtkTrashMonitor
Emmanuele Bassi [Thu, 19 Nov 2015 12:41:22 +0000 (12:41 +0000)]
Fix the license version in GtkTrashMonitor

There is no GNU Lesser General Public License version 2; it's either GNU
Library General Public License version 2, or GNU Lesser General Public
License version 2.1.

10 years agoFix license version for GtkFileChooserWidget private header
Emmanuele Bassi [Thu, 19 Nov 2015 12:33:07 +0000 (12:33 +0000)]
Fix license version for GtkFileChooserWidget private header

Since it's using Lesser GPL, use version 2.1; there is no Lesser GPL v2,
as it was called 'Library GPL' prior to v2.1.

10 years agoFix the licensing blurb of GtkBookmarksManager
Emmanuele Bassi [Thu, 19 Nov 2015 12:11:05 +0000 (12:11 +0000)]
Fix the licensing blurb of GtkBookmarksManager

Copy-pasta from GPL instead of LGPL.

Also, there is no GNU Lesser General Public License version 2; either
it's the GNU Library General Public License version 2, or it's the GNU
Lesser General Public License version 2.1.

10 years agoFix the licensing blurb in GtkPlacesSidebar
Emmanuele Bassi [Thu, 19 Nov 2015 12:06:54 +0000 (12:06 +0000)]
Fix the licensing blurb in GtkPlacesSidebar

The code is released under the terms of the LGPL v2.1+, as is the rest
of the GTK+ code.

10 years agoFix license header
Matthias Clasen [Thu, 19 Nov 2015 12:22:01 +0000 (07:22 -0500)]
Fix license header

I didn't meant to make this different from any other file
in GTK+ when I added it.

10 years agobox: Use an element name
Matthias Clasen [Thu, 19 Nov 2015 12:07:26 +0000 (07:07 -0500)]
box: Use an element name

10 years agotoolitemgroup: Fix initial state
Matthias Clasen [Thu, 19 Nov 2015 11:04:26 +0000 (06:04 -0500)]
toolitemgroup: Fix initial state

GtkToolItemGroup starts out as non-collapsed, make the CSS node
state reflect that.

10 years agoDocument GDK_TOUCHPAD_GESTURE_MASK
Matthias Clasen [Wed, 18 Nov 2015 15:21:15 +0000 (10:21 -0500)]
Document GDK_TOUCHPAD_GESTURE_MASK

10 years agoentry: ensure valid GdkWindow before set_invisible_cursor()
Christian Hergert [Wed, 18 Nov 2015 22:41:29 +0000 (14:41 -0800)]
entry: ensure valid GdkWindow before set_invisible_cursor()

If the window has not yet been created, then we can't set the invisible
cursor yet. This can happen in situations where the widget is in a
revealer with type-to-search functionality.

10 years agoHighContrast: remove deprecated progressbar style properties
Cosimo Cecchi [Wed, 18 Nov 2015 17:16:51 +0000 (09:16 -0800)]
HighContrast: remove deprecated progressbar style properties

These are ignored and trigger a runtime warning.

10 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 18 Nov 2015 12:22:59 +0000 (12:22 +0000)]
Updated Spanish translation

10 years agogtkwindow: apply csd offset to set/get_default_size
Olivier Fourdan [Thu, 12 Nov 2015 15:56:20 +0000 (16:56 +0100)]
gtkwindow: apply csd offset to set/get_default_size

An application may use gtk_window_get_size() to retrieve the current
window size and later reuse that size with
gtk_window_set_default_size().

gtk_window_set_default_size() and gtk_window_get_default_size() should
also take client side decorations offset into account.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agopopover: Avoid a crash when no relative-to widget is set
Matthias Clasen [Wed, 18 Nov 2015 03:48:35 +0000 (22:48 -0500)]
popover: Avoid a crash when no relative-to widget is set

This was showing up in glade, which creates freestanding
popovers.

10 years agoHighContrast: remove deprecated style properties
Matthias Clasen [Wed, 18 Nov 2015 02:47:02 +0000 (21:47 -0500)]
HighContrast: remove deprecated style properties

10 years agoexpander: Use the right state when querying style properties
Matthias Clasen [Wed, 18 Nov 2015 01:48:50 +0000 (20:48 -0500)]
expander: Use the right state when querying style properties

Failure to do so causes warnings.

10 years agogtk-demo: Fix the CSS examples
Matthias Clasen [Wed, 18 Nov 2015 00:55:58 +0000 (19:55 -0500)]
gtk-demo: Fix the CSS examples

The CSS needs small adjustments after all the CSS node changes.

10 years agogtk-demo: Fix the assistant example
Matthias Clasen [Wed, 18 Nov 2015 00:48:02 +0000 (19:48 -0500)]
gtk-demo: Fix the assistant example

GtkEntry respects valign now, so we need to set it to something
other than fill.

10 years agoAdwaita: Drop deprecated style properties
Matthias Clasen [Wed, 18 Nov 2015 00:41:08 +0000 (19:41 -0500)]
Adwaita: Drop deprecated style properties

10 years agowayland: Move additional pointer buttons after the old 4-7 scrolling ones
Carlos Garnacho [Mon, 16 Nov 2015 11:51:42 +0000 (12:51 +0100)]
wayland: Move additional pointer buttons after the old 4-7 scrolling ones

We were using that range for the extra buttons after left/right/middle,
while this is harmless for clients not handling extra buttons (we
used to translate those button events into scroll events in x11 anyway)
this will be unexpected for clients that do handle additional mouse
buttons themselves (eg. back/forward buttons present in some mice).

In order to remain compatible with X11, those need to be assigned from
button 8 onwards.

Also, include input.h, and stop using magic numbers here.

https://bugzilla.gnome.org/show_bug.cgi?id=758072

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 17 Nov 2015 17:56:17 +0000 (18:56 +0100)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 17 Nov 2015 17:56:07 +0000 (18:56 +0100)]
Updated Spanish translation

10 years agoUpdated Scottish Gaelic translation
GNOME Translation Robot [Tue, 17 Nov 2015 17:47:41 +0000 (17:47 +0000)]
Updated Scottish Gaelic translation

10 years agox11: Add "pointer" to the is-not-a-touchscreen device name checks
Carlos Garnacho [Tue, 17 Nov 2015 14:36:08 +0000 (15:36 +0100)]
x11: Add "pointer" to the is-not-a-touchscreen device name checks

Commit 1266d15c4 also broke Xwayland, as it does the same trick
than VMWare pointers. Let's extend the heuristic to check for "pointer"
in the device name, what can possibly go wrong...

https://bugzilla.gnome.org/show_bug.cgi?id=757358

10 years agostackswitcher: add GtkStackSwitcher:icon-size property
Christian Hergert [Tue, 17 Nov 2015 05:38:22 +0000 (21:38 -0800)]
stackswitcher: add GtkStackSwitcher:icon-size property

Set the GtkStackSwitcher:icon-size property to change the size of icons
used in the linked GtkRadioButton children.

https://bugzilla.gnome.org/show_bug.cgi?id=758208

10 years agox11: Try harder to find a core pointer
Matthias Clasen [Mon, 16 Nov 2015 23:31:37 +0000 (18:31 -0500)]
x11: Try harder to find a core pointer

We currently just look for a master device with input source MOUSE.
After recent changes to the way input devices are classified, xwayland
on my system comes up with a virtual core pointer that has input
source TOUCHSCREEN. This was causing assertion failures. Be a little
more careful and accept a touchscreen as core pointer, if there is
no mouse.

10 years agoAdwaita: Remove deprecated style properties
Matthias Clasen [Mon, 16 Nov 2015 20:14:41 +0000 (15:14 -0500)]
Adwaita: Remove deprecated style properties

These are now triggering warnings, so clean them up.

10 years agoAnnotate deprecated style properties
Matthias Clasen [Mon, 16 Nov 2015 20:13:33 +0000 (15:13 -0500)]
Annotate deprecated style properties

Use G_PARAM_DEPRECATED with deprecated style properties.
This will make it easier to identify and remove such stale
properties from css, since it will now trigger warnings.

10 years agocss provider: Issue deprecation warnings for style properties
Matthias Clasen [Mon, 16 Nov 2015 19:37:23 +0000 (14:37 -0500)]
css provider: Issue deprecation warnings for style properties

This makes G_PARAM_DEPRECATED useful for style properties.

10 years agocssprovider: Only push a new scanner when none exists
Benjamin Otte [Mon, 16 Nov 2015 18:34:24 +0000 (19:34 +0100)]
cssprovider: Only push a new scanner when none exists

For @import, we want to emit the error as part of the @import statement,
not as part of the new file.

10 years agocssprovider: Have a section on import error
Benjamin Otte [Mon, 16 Nov 2015 16:36:50 +0000 (17:36 +0100)]
cssprovider: Have a section on import error

When loading a nonexisting CSS file using
gtk_css_provider_load_from_file() or gtk_css_provider_load_from_path()
we would emit the error using a NULL scanner. Don't do that, because
we'll have a NULL section in that case and error handlers don't like
that.

Testcase attached.

https://bugzilla.redhat.com/show_bug.cgi?id=1277959

10 years agogtkcontainer: clarify requirements for implementations
Carlos Soriano [Wed, 11 Nov 2015 10:37:28 +0000 (11:37 +0100)]
gtkcontainer: clarify requirements for implementations

Spent quite a few time investigating why the widgets were
not shown in my GtkContainer implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=758087

10 years agoUpdated Scottish Gaelic translation
GNOME Translation Robot [Mon, 16 Nov 2015 15:22:01 +0000 (15:22 +0000)]
Updated Scottish Gaelic translation

10 years agospinbutton: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:18:32 +0000 (06:18 -0500)]
spinbutton: Document some style properties as deprecated

No code change.

10 years agorange: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:17:36 +0000 (06:17 -0500)]
range: Document some style properties as deprecated

Remove dead code dealing with the arrow-displacement-x/y style
properties, and document them as deprecated.

10 years agoprogressbar: Ignore x/yspacing style properties
Matthias Clasen [Mon, 16 Nov 2015 11:16:31 +0000 (06:16 -0500)]
progressbar: Ignore x/yspacing style properties

These are not really useful, so ignore and deprecate them.

10 years agomenuitem: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:15:48 +0000 (06:15 -0500)]
menuitem: Document some style properties as deprecated

No code change.

10 years agomenubar: Ignore the shadow-type style property
Matthias Clasen [Mon, 16 Nov 2015 11:14:54 +0000 (06:14 -0500)]
menubar: Ignore the shadow-type style property

The border can be controlled with regular CSS, so deprecate
and ignore this style property.

10 years agoicon view: Document some style properties as deprecated
Matthias Clasen [Mon, 16 Nov 2015 11:13:31 +0000 (06:13 -0500)]
icon view: Document some style properties as deprecated

No code change.

10 years agoentry: Ignore the icon-prelight style property
Matthias Clasen [Mon, 16 Nov 2015 11:12:24 +0000 (06:12 -0500)]
entry: Ignore the icon-prelight style property

The icon prelight effect can be controlled with regular CSS,
so deprecate and ignore this style property.